{include file="header.tpl"}

<div id="main">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>

<div id="pb_leftbox">
<h2>{$lan_randompics}</h2>
<div id="pb_leftbox_main">
{section name=image loop=$images}
<div class="thumb-sml">
<table>
<thead>
<tr>
<th><a href="{'InterPhoto.php'|GetUrl:'id':$images[image].imageid}">
<img src="InterPhoto.thumbnail.php?file={$images[image].path|cat:"/1/"|cat:$images[image].filename|InterEncode}" class="thumbnail" alt="{$images[image].title|default:$lan_notitle}" title="{$images[image].title|default:$lan_notitle}" onMouseMove="ShowBigImage();" /></a></th>
</tr>
</thead>
</table>
</div>
{/section}

</div>
</div>


<div id="pb_rightbox">
<h2>{$lan_publish|cat:$lan_image}</h2>
{''|GetSystemInfo}

{if $showform}
{$Editor}

<div id="pb_rightbox_main">
<form enctype="multipart/form-data" method="post" action="{'publish.php'|GetUrl}">
<input type="hidden" name="action" value="insertimage" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120">{$lan_upload|cat:$lan_image}:&nbsp;</td>
<td>
<input name="imagefile" type="file" size="40" /> <span class="red">* {$lan_must}</span><BR><span class="lightgrey">{$lan_onlyjpgfile}</span><BR><BR>
</td>
</tr>
<tr>
<td>{$lan_belongto}{$lan_category}:&nbsp;</td>
<td>{$categoryselect} <span class="red">* {$lan_must}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_title}:&nbsp;</td>
<td><input type="text" name="title" size="40" value="{$image.title}" /> <span class="red">* {$lan_must}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><img src="InterPhoto.vvc.php?key={$vvckey}" onclick="ChangeCaptcha(this);" style="cursor:pointer;" title="{$lan_newcaptcha}" width="280" height="60" />
<input type="hidden" name="vvckey" value="{$vvckey}" />
</td>
</tr>
<tr>
<td>{$lan_verifycode}:&nbsp;</td>
<td><input type="text" name="vvc" size="10" /> <span class="red">* {$lan_must}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_description}:&nbsp;</td>
<td><div style="background-color:#FFF;color:#000;width:570px;"><textarea name="description" style="height:140px;width:570px;" id="description658">{$image.description}</textarea></div><BR></td>
</tr>
<tr>
<td>{$lan_meta}:&nbsp;</td>
<td><input type="text" name="keywords" size="40" value="{$image.keywords}" /></td>
</tr>
<tr>
<td>{$lan_image}{$lan_linkurl}:&nbsp;</td>
<td><input type="text" name="url" size="40" value="{$image.url}" /></td>
</tr>
<tr>
<td>{$lan_forsale}:&nbsp;</td>
<td><input type="checkbox" name="sale" value="1"  {if $image.sale}CHECKED{/if} />&nbsp;<b>{$lan_yes}:</b>&nbsp;&nbsp;<span class="lightgrey">{$lan_forsalenote}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_price}:&nbsp;</td>
<td><input type="text" name="price" size="20" value="{$image.price}" /></td>
</tr>


<tr>
<td>&nbsp;</td>
<td><BR>
<input type="submit" value=" &nbsp;{$lan_submit}&nbsp; " />
</td>
</tr>
</table>
</form>
</div>
{/if}

</div>

</td>
</tr>
</table>
</div>


{include file="footer.tpl"}
